package md.mru.core.repositories;

import md.mru.core.domains.Issuer;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

/**
 * @author sergiu.marin
 * @since 01.04.2014
 */
public interface IssuerRepository extends JpaRepository<Issuer, Long> {

    @Query("SELECT i FROM Issuer i WHERE i.visible=true")
    List<Issuer> loadActiveIssuers();
}
